package com.oozol.lieluyun.entity;

import io.swagger.annotations.ApiModelProperty;

public class UserEntity {
   @ApiModelProperty("用户ID")
   private Integer userId;
   @ApiModelProperty("用户名称")
   private String username;
   @ApiModelProperty("用户密码")
   private String password;
   @ApiModelProperty("用户手机")
   private String mobile;

   public UserEntity() {
   }

   public UserEntity(Integer userId, String username, String password, String mobile) {
      this.userId = userId;
      this.username = username;
      this.password = password;
      this.mobile = mobile;
   }

   public Integer getUserId() {
      return this.userId;
   }

   public String getUsername() {
      return this.username;
   }

   public String getPassword() {
      return this.password;
   }

   public String getMobile() {
      return this.mobile;
   }

   public void setUserId(final Integer userId) {
      this.userId = userId;
   }

   public void setUsername(final String username) {
      this.username = username;
   }

   public void setPassword(final String password) {
      this.password = password;
   }

   public void setMobile(final String mobile) {
      this.mobile = mobile;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof UserEntity)) {
         return false;
      } else {
         UserEntity other = (UserEntity)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            Object this$userId = this.getUserId();
            Object other$userId = other.getUserId();
            if (this$userId == null) {
               if (other$userId != null) {
                  return false;
               }
            } else if (!this$userId.equals(other$userId)) {
               return false;
            }

            Object this$username = this.getUsername();
            Object other$username = other.getUsername();
            if (this$username == null) {
               if (other$username != null) {
                  return false;
               }
            } else if (!this$username.equals(other$username)) {
               return false;
            }

            Object this$password = this.getPassword();
            Object other$password = other.getPassword();
            if (this$password == null) {
               if (other$password != null) {
                  return false;
               }
            } else if (!this$password.equals(other$password)) {
               return false;
            }

            Object this$mobile = this.getMobile();
            Object other$mobile = other.getMobile();
            if (this$mobile == null) {
               if (other$mobile != null) {
                  return false;
               }
            } else if (!this$mobile.equals(other$mobile)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof UserEntity;
   }

   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $userId = this.getUserId();
      result = result * 59 + ($userId == null ? 43 : $userId.hashCode());
      Object $username = this.getUsername();
      result = result * 59 + ($username == null ? 43 : $username.hashCode());
      Object $password = this.getPassword();
      result = result * 59 + ($password == null ? 43 : $password.hashCode());
      Object $mobile = this.getMobile();
      result = result * 59 + ($mobile == null ? 43 : $mobile.hashCode());
      return result;
   }

   public String toString() {
      return "UserEntity(userId=" + this.getUserId() + ", username=" + this.getUsername() + ", password=" + this.getPassword() + ", mobile=" + this.getMobile() + ")";
   }
}
